package com.asj.house.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房源信息表
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("house_room_resource")
@AllArgsConstructor
@NoArgsConstructor
public class HouseRoomResource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 房屋id
     */
    private Integer roomId;

    /**
     * 房源名称
     */
    @TableField(exist = false)
    private String roomName;

    /**
     * 位置
     */
    private String address;

    /**
     * 房源
     */
    private String resource;

    /**
     * 房源面积
     */
    private String houseArea;

    /**
     * 计租面积
     */
    private String rentalArea;

    /**
     * 户型
     */
    private String houseType;

    /**
     * 建筑结构
     */
    private String structure;

    /**
     * 租赁性质
     */
    private String nature;

    /**
     * 状态：0=建成待租;1=已配租
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createdDate;

    /**
     * 修改时间
     */
    private LocalDateTime modifiedDate;

    /**
     * 删除标记：0=正常;1=已删除
     */
    private Integer deleted;

    public HouseRoomResource (Integer roomId) {
        this.roomId = roomId;
    }
}
